package com.mini.gateway.core.modules.route.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * RouteType
 *
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RouteType implements IEnum<Integer> {

    DISCOVERY(0, "服务发现", "DISCOVERY_"),
    CUSTOMIZE(1, "自定义路由", "CUSTOMIZE_");

    RouteType(Integer value, String name, String prefix) {
        this.value = value;
        this.name = name;
        this.prefix = prefix;
    }

    private Integer value;
    private String name;
    private String prefix;

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrefix() {
        return prefix;
    }
}
